package com.fast.develop.meta.resource;

import com.fast.develop.meta.base.MetaRegistor;
import com.fast.develop.meta.base.reader.SchemaFileReader;
import com.fast.develop.meta.base.reader.SchemaReader;
import com.fast.develop.meta.base.resource.MetaFileMultResource;
import com.fast.develop.meta.resource.loader.MetaResourceLoader;


/**
 * @author 莫寅
 * @createTime 2022-06-15 14:56
 * @desc：
 */
public class MetaResourceRegistor implements MetaRegistor {

    private static final String DEFAULT_PATH = ".schema/resource";

    @Override
    public SchemaReader getSchemaReader() {

        return new SchemaFileReader(new MetaFileMultResource(DEFAULT_PATH), new MetaResourceLoader() );
    }


    @Override
    public String type() {
        return "resource";
    }
}
